import axios from "axios";



class NewAxios {
    constructor(options) {
        this.axiosInstance = axios.create(options)
    }
    request(options){
       return this.axiosInstance(options)
    }
    get({url,data={},...args}) {
       return this.request({
           method:'GET',
           url,
           params:data,
           ...args
       })
    }
    post({url,data={},...args}) {
        return this.request({
            method:'POST',
            url,
            data,
            ...args
        })
    }
}

export default NewAxios







